package com.osmino.contacts.dialer;

public final class DialerStateModel {

	private DialerStateModelClient mClient;
	
	public DialerStateModel() {//
	}
	
	public void registerClient(DialerStateModelClient client) {
		mClient = client;
	}
	
	public void unregisterClient() {
		mClient = null;
	}
	
	public void toggleState() {
		if (mClient != null) {
			mClient.onStateToggled();
		}
	}
	
	public static interface DialerStateModelClient {
		
		public void onStateToggled();
	}
}
